home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Internet Info 1994 March
/
Internet Info CD-ROM (Walnut Creek) (March 1994).iso
/
networking
/
ip
/
ka9q
/
src.arc
/
AX_MBX.H
< prev
next >
Wrap
C/C++ Source or Header
|
1989-08-19
|
2KB
|
43 lines
/* Defines for the ax.25 mailbox facility */
#define NUMMBX 10 /* max number of mailbox sessions */
#define MBXLINE 128 /* max length of line */
struct mbx {
int state ; /* mailbox state */
#define MBX_CMD 1 /* in command mode */
#define MBX_SUBJ 2 /* waiting for a subject line */
#define MBX_DATA 3 /* collecting the message */
char name[10] ; /* Name of remote station */
char *to ; /* To-address in form user or user@host */
char *tofrom ; /* Optional <from in to-address */
char *tomsgid ; /* Optional $msgid in to-address */
FILE *tfile ; /* Temporary file for message */
char line[MBXLINE+1] ; /* Room for null at end */
int mbnum ; /* which mailbox session is this? */
int sid ; /* Characteristics indicated by the SID */
/* banner of the attaching station. If */
/* no SID was sent, this is zero. If an */
/* SID of any kind was received, it is */
/* assumed that the station supports */
/* abbreviated mail forwarding mode. */
#define MBX_SID 0x01 /* Got any SID */
#define MBX_SID_RLI 0x02 /* This is an RLI BBS, disconnect after F> */
/* Space here for others, currently not of */
/* interest to us. */
char stype ; /* BBS send command type (B,P,T, etc.) */
int type ; /* Type of session when invoking "chat" */
int user; /* User linkage area */
} ;
#define NULLMBX (struct mbx *)0
extern struct mbx *mbox[NUMMBX] ;
extern int ax25mbox ;
extern char Hostname[];
extern char *Sestypes[];
/* In ax_mbx.c: */
void mbx_incom __ARGS((int s,void *t,void *p));